export const state = ()=>({ //函数内部返回对象
    counter:0
})

export const mutations = {
    increment (state) {
        state.counter++
    },
    changeCount(state,newCount){
        state.counter = newCount;
    }
}
